import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Header from '../components/Header.vue';
import Temp from '../components/Temp.vue';

import Main from '../view/Main.vue';
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      children: [
        { path: 'temp',name:'temp',component:Temp }
      ]
    },{
      path: '/main',
      name: 'Main',
      component: Main,
    }
  ]
})
